from PyQt5 import QtCore, QtGui, QtWidgets

class Ui_login(object):
    def setupUi(self, login):
        login.setObjectName("login")
        login.resize(1043, 741)
        self.verticalFrame = QtWidgets.QFrame(login)
        self.verticalFrame.setGeometry(QtCore.QRect(30, 310, 1051, 471))
        self.verticalFrame.setObjectName("verticalFrame")
        self.label = QtWidgets.QLabel(self.verticalFrame)
        self.label.setGeometry(QtCore.QRect(160, 70, 660, 68))
        self.label.setObjectName("label")
        self.gridFrame = QtWidgets.QFrame(self.verticalFrame)
        self.gridFrame.setGeometry(QtCore.QRect(11, 207, 1029, 188))
        self.gridFrame.setObjectName("gridFrame")
        self.label_2 = QtWidgets.QLabel(self.gridFrame)
        self.label_2.setGeometry(QtCore.QRect(0, 30, 81, 31))
        self.label_2.setObjectName("label_2")
        self.lineEdit = QtWidgets.QLineEdit(self.gridFrame)
        self.lineEdit.setGeometry(QtCore.QRect(90, 30, 900, 35))
        font = QtGui.QFont()
        font.setFamily("Arial")
        font.setPointSize(16)
        self.lineEdit.setFont(font)
        self.lineEdit.setObjectName("lineEdit")
        self.label_3 = QtWidgets.QLabel(self.gridFrame)
        self.label_3.setGeometry(QtCore.QRect(0, 90, 81, 31))
        self.label_3.setObjectName("label_3")
        self.lineEdit_2 = QtWidgets.QLineEdit(self.gridFrame)
        self.lineEdit_2.setGeometry(QtCore.QRect(90, 90, 900, 35))
        font = QtGui.QFont()
        font.setFamily("Arial")
        font.setPointSize(16)
        self.lineEdit_2.setFont(font)
        self.lineEdit_2.setObjectName("lineEdit_2")
        self.pushButton = QtWidgets.QPushButton(self.verticalFrame)
        self.pushButton.setGeometry(QtCore.QRect(100, 360, 181, 61))
        self.pushButton.setObjectName("pushButton")
        self.pushButton_2 = QtWidgets.QPushButton(self.verticalFrame)
        self.pushButton_2.setGeometry(QtCore.QRect(770, 360, 181, 61))
        self.pushButton_2.setObjectName("pushButton_2")
        self.pushButton_3 = QtWidgets.QPushButton(self.verticalFrame)
        self.pushButton_3.setGeometry(QtCore.QRect(820, 170, 181, 61))
        self.pushButton_3.setObjectName("pushButton_3")
        self.label_4 = QtWidgets.QLabel(login)
        self.label_4.setGeometry(QtCore.QRect(-10, -10, 1141, 341))
        self.label_4.setText("")
        self.label_4.setPixmap(QtGui.QPixmap("dlnu.jpg"))
        self.label_4.setScaledContents(False)
        self.label_4.setObjectName("label_4")

        self.retranslateUi(login)
        self.pushButton.clicked.connect(login.login_y)
        self.pushButton_2.clicked.connect(login.registered)
        self.pushButton_3.clicked.connect(login.login_g)

        QtCore.QMetaObject.connectSlotsByName(login)

    def retranslateUi(self, login):
        _translate = QtCore.QCoreApplication.translate
        login.setWindowTitle(_translate("login", "login"))
        self.label.setText(_translate("login", "<html><head/><body><p align=\"center\"><span style=\" font-size:36pt;\">欢迎使用超市进销存系统</span></p></body></html>"))
        self.label_2.setText(_translate("login", "<html><head/><body><p><span style=\" font-size:16pt;\">账号：</span></p></body></html>"))
        self.label_3.setText(_translate("login", "<html><head/><body><p><span style=\" font-size:16pt;\">密码：</span></p></body></html>"))
        self.pushButton.setText(_translate("login", "登录"))
        self.pushButton_2.setText(_translate("login", "注册"))
        self.pushButton_3.setText(_translate("login", "管理员登录"))

